package com.zzc.repository;

import com.zzc.domain.Client;
import org.hibernate.annotations.Nationalized;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.transaction.annotation.Transactional;

public interface ClientRep extends JpaRepository<Client,Integer>, JpaSpecificationExecutor<Client> {

    Client findByClientId(int clientId);

    @Modifying
    @Transactional
    void deleteByClientId(int clientId);

}
